#include <QCoreApplication>
#include <QDebug>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    qDebug("start");
    qint8 x = 100;
    qDebug("%d", x);

    qDebug("%d", qrand());

    qDebug("%x", QT_VERSION);

    QList<qint16> personList;
    personList.append(1);
    personList<<2<<3<<4;

    QList<short>::iterator iter = personList.begin();
    for(;iter != personList.end(); iter++){
        qDebug("%d", *iter);
    }
    QListIterator<qint16> iter2(personList);
    while(iter2.hasNext()){
        qDebug()<<iter2.next();
    }

    foreach(qint16 i, personList){
        qDebug()<<i;
    }

    return a.exec();
}
